<template>
  <div>
    <div>{{ $translate("greetings.hello") }}</div>
    <div>{{ $translate("greetings.你好啊") }}</div>
  </div>
</template>

<script>
import { inject } from "vue";
export default {
  mounted() {
    console.log("全局中获取到的值：" + inject("i18n").greetings.hello);
  },
};
</script>

<style></style>
